<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex align-stretch benben-position-layout flex systemAnnouncement_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex align-center justify-between flex-sub systemAnnouncement_fd0_0'>
					<view class='flex align-center systemAnnouncement_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  systemAnnouncement_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex align-center'>
						<text class='systemAnnouncement_fd0_0_c1_c0'>系统通知</text>
					</view>
					<view class='flex align-center systemAnnouncement_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---平台消息flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch justify-center benben-flex-layout">
				<view v-for="(item,index) in dataList" :key="index" class='flex flex-direction flex-wrap align-stretch systemAnnouncement_fd1_0'
					@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/xtxx/newDetail/newDetail`">
					<text class='systemAnnouncement_fd1_0_c0'>{{item.title}}</text>
					<text class='systemAnnouncement_fd1_0_c1'>{{item.content}}</text>
					<view class='flex flex-wrap align-center systemAnnouncement_fd1_0_c2'>
						<text class='systemAnnouncement_fd1_0_c2_c0'>{{item.create_time}}</text>
					</view>
				</view>
				<view class="flex justify-center" v-if="dataList.length==0" style="width: 100%;">
					<fu-empty-ui></fu-empty-ui>
				</view>
			</view>
			<!---平台消息flex布局结束-->
		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"dataList": []
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getListFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//系统文章-获取平台公告列表
			async getListFunc() {
				//请求方法
				//数据验证

				let datadataList = await this.$api.get(global.apiUrls.post6415752f56d0f, {

				});

				if (datadataList.data.code != 1) {
					this.$message.info(datadataList.data.msg);
					return
				}
				let infodataList = datadataList.data.data;
				this.dataList = infodataList.data
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.systemAnnouncement_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.systemAnnouncement_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
	}

	.systemAnnouncement_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.systemAnnouncement_fd0_0_c0 {
		width: 180rpx;
	}

	.systemAnnouncement_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.systemAnnouncement_fd1_0_c2_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
	}

	.systemAnnouncement_fd1_0_c2 {
		border-top: 1px solid rgba(238, 238, 238, 1);
		padding: 24rpx 0rpx 0rpx 0rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
	}

	.systemAnnouncement_fd1_0_c1 {
		margin: 24rpx 0rpx 0rpx 0rpx;
		line-height: 46rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		-webkit-line-clamp: 3;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.systemAnnouncement_fd1_0_c0 {
		line-height: 36rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.systemAnnouncement_fd1_0 {
		background: #fff;
		margin: 24rpx 32rpx 0rpx 32rpx;
		padding: 24rpx 24rpx 24rpx 24rpx;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}
</style>